home *** CD-ROM | disk | FTP | other *** search
- ECHO OFF
- CLS
- IF NOT EXIST VCHECK.COM GOTO DIRERROR
- ECHO ╔════════════════════════════════════════════════════════════════╗
- ECHO ║ VSEARCH - The ultimate line of defense against computer virus. ║
- ECHO ║ ║
- ECHO ║ This program harnesses the power of VCHECK and VCOMP to detect ║
- ECHO ║ ANY changes in your virus-vulnerable files. It does this by ║
- ECHO ║ comparing the checksums that VCHECK creates. Even if you don't ║
- ECHO ║ know about checksums, rest assured that no alteration to a ║
- ECHO ║ program may be made without changing the checksum. This will ║
- ECHO ║ take some time, but it will be worth it. ║
- ECHO ║ You'll not have to run this procedure frequently. ║
- ECHO ╚════════════════════════════════════════════════════════════════╝
- ECHO
- FOR %%A IN (NEW new) DO IF "%1"=="%%A" ERASE VSUM.REF
- IF EXIST VSUM.REF GOTO HDRPAUSE
- ECHO ╔══════════════════════════════════════════════════════╗
- ECHO ║ First off, you'll want to create a "reference" list ║
- ECHO ║ of checksums for later comparison using VSEARCH. ║
- ECHO ║ Do you want to make the reference list now? ║
- :HDRPAUSE
- if not exist VSUM.REF ECHO ╚══════════════════════════════════════════════════════╝
- ECHO [ HIT ANY KEY TO CONTINUE (OR Ctrl-Break TO QUIT) ]
- ECHO
- PAUSE > NUL
- CLS
- IF NOT EXIST VSUM.REF GOTO MAKENEW
- ECHO Creating comparison list now. This may take a few minutes...
- ECHO
- VCHECK /VSUM.NEW
- CLS
- ECHO ╔══════════════════════════════════════════════════╗
- ECHO ║ Comparing new list with reference . . . ║
- ECHO ║ ║
- ECHO ║ Any differences will be detected. ║
- ECHO ║ Different file statistics mean that file has ║
- ECHO ║ been altered -- probably by a virus or bomb. ║
- ECHO ║ Replace any such files if there is any doubt. ║
- ECHO ╚══════════════════════════════════════════════════╝
- VCOMP VSUM.REF VSUM.NEW > VSUM.!!!
- REM errorlevel 2 means diffs were found; 1 means file was infected.
- IF NOT ERRORLEVEL 2 GOTO NODIFFS
- ECHO VCOMP DETECTED DIFFERENCES. SEE FILE "VSUM.!!!"
- ECHO A note stating - STATISTICS NOT SAME !!! -
- ECHO could indicate a file changed by a virus.
- GET Do you want to see VSUM.!!! now? [Y]es/other key to quit
- IF ERRORLEVEL 90 GOTO EXITMSG
- IF NOT ERRORLEVEL 89 GOTO EXITMSG
- CLS
- IF EXIST VSUM.!!! TYPE VSUM.!!!
- GOTO EXITMSG
- :NODIFFS
- ERASE VSUM.!!! > NUL
- ECHO
- ECHO OK, NO DIFFERENCES DETECTED
- ECHO
- GOTO EXITMSG
- :DIRERROR
- ECHO
- ECHO ╔═════════════════════════════════════════════════════╗
- ECHO ║ You should be in the Victor Charlie Home Directory ║
- ECHO ║ to use this program as it stands. If not, you will ║
- ECHO ║ have VSUM.REF files dotted around your disk. ║
- ECHO ║ You can easily edit VSEARCH to your own needs. ║
- ECHO ╚═════════════════════════════════════════════════════╝
- ECHO
- GOTO EXIT
- :MAKENEW
- ECHO ╔════════════════════════════════════════════════════════════╗
- ECHO ║ VSUM.REF does not exist. Creating it now. ║
- ECHO ║ directory of this drive. Stand by please . . . ║
- ECHO
- ECHO (Actual output is being redirected. This could take a few minutes ...)
- VCHECK /VSUM.REF
- ECHO
- ECHO ╔════════════════════════════════════════════════════════════╗
- ECHO ║ OK! Statistics of vulnerable files are recorded in ║
- ECHO ║ VSUM.REF. ║
- ECHO ║ When you really need to do an exhaustive search of ║
- ECHO ║ executables for changes, just run VSEARCH again. ║
- ECHO ║ This is an advanced line of defense, should VCHECK ║
- ECHO ║ fail to spot the infected programs with a passive search. ║
- ECHO ╚════════════════════════════════════════════════════════════╝
- :EXITMSG
- ECHO ╔═════════════════════════════════════════════════════════╗
- ECHO ║ Remember: if you change, add or delete any PROGRAMS ║
- ECHO ║ in your computer, you should delete VSUM.REF and make ║
- ECHO ║ a fresh list by running VSEARCH. This warning does NOT ║
- ECHO ║ apply to new data files, which VSEARCH does not check. ║
- ECHO ╚═════════════════════════════════════════════════════════╝
- :EXIT